<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <iframe id="ceshi" src="./swiper.html" frameborder="0" width="100%" height="600px"></iframe>
    <script>
        setTimeout(() => {
            let iframeDocument = document.getElementById('ceshi').contentWindow.document
            let elementForm = iframeDocument.querySelector("form").children;
            let lastElement = formElements[formElements.length - 1];
            elementFrom.removeChild(lastElement);
        }, 2000)
    </script>
</body>

</html>